package com.keat.qqclient.ui;

import com.keat.qqclient.utils.Utility;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.TextArea;
import javafx.scene.control.TextField;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
import javafx.scene.Parent;
import javafx.fxml.FXMLLoader;
import javafx.stage.Stage;
import javafx.scene.control.Label;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class MessageClientService extends Application {

    private final com.keat.qqclient.service.MessageClientService messageClientService = new com.keat.qqclient.service.MessageClientService();
    @FXML
    private String userId; // 用户ID
    private ExecutorService executorService;
    @FXML
    private TextArea chatArea;
    @FXML
    private TextField inputField;

    @Override
    public void start(Stage primaryStage) throws Exception {
        Parent root = FXMLLoader.load(getClass().getResource("UserClientController.fxml"));
        primaryStage.setTitle("未登录");
        primaryStage.setScene(new Scene(root));
        primaryStage.show();
    }

    public static void main(String[] args) {
        launch(args);
    }
}
